import request from '@/utils/request'

//获取盘点单列表
export function GetInventoryCheckList(params) {
  return request({
    url: '/Interface/GetTakeStock',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//添加盘点单
export function AddInventoryCheck(params) {
  return request({
    url: '/Interface/SaveTakeStock',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询盘点单详细
export function getInventoryCheckDetail(params) {
  return request({
    url: '/Interface/GetTakeStockSub',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//盘点单作废
export function InventoryCheckRevoke(params) {
  return request({
    url: '/Interface/CloseTakeStock',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//结束盘点
export function InventoryCheckFinish(params) {
  return request({
    url: '/Interface/EndTakeStock',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}


